

#ifndef __http_register_h
#define __http_register_h

#include <vector>
#include <memory>
#include <net/if.h>
#include <sys/ioctl.h>
#include <sys/socket.h>

#include "cpp-httplib/httplib.h"
#include "crypto.h"
#include "logging.h"
#include "mbedtls/md.h"

namespace httpRegisterDev
{
    class httpRegister
    {
    private:
        std::string reister_curl = "http://iot-test.imuyuan.com";
        std::string curl_path = "/api/wlw/noToken/MyIot/add";
        std::string deviceId;
        std::string device_version_id;
        std::string equiptype_id;
        std::string firmware_version;
        std::string timestamp;

    public:
        httpRegister();
        httpRegister(std::string curl,std::string path);
        ~httpRegister(){};

        void setRegisterInfo(std::string vcuId);
        void setRegisterInfo(std::string url,std::string url_path,std::string vcuId);
        int register_device(std::string &user_name,std::string &password,std::string &client_id);


    };

} // namespace http_register

#endif